ActiveDNS 1.0

Copyright 1998 by Activity Software (http://www.activitysoft.com/)
Released: 08/25/98
For more information on this and other products visit Activity's Product Page.

Description

ActiveDNS performs basic DNS functionality. This is a COM object that can be used from any COM aware application. It can be used from ASP, Visual Basic, or Windows Scripting Host.

New Features

Version 1.0

Installation

Copy ActiveDNS.DLL to the <WINDIR>\SYSTEM32 directory and run:
      regsvr32.exe <WINDIR>\SYSTEM32\ActiveDNS.DLL

Properties

This object has no properties.

Methods

boolean IsValidNumericAddress(IP Address)
Determines whether the provided IP Address is in the proper format and contains reasonable data. Returns true if IP Address is in the proper format; otherwise returns false.

String Resolve(DNS Address)
Takes a DNS name (such as www.microsoft.com), and returns the associated IP address. If no IP address can be resolved, returns an Empty String.

String ReverseResolve(IP Address)
Takes an IP address and finds the DNS name (such as www.microsoft.com). If no DNS hostname can be resolved, returns the IP address it is passed.

Example

<%@ LANGUAGE="VBSCRIPT" %>

<%
Set dns = Server.CreateObject("ActiveDNS.Resolve")

Address = "127.0.0.1"
Hostname = "localhost"

If dns.IsValidNumericAddress(Address) Then
 Response.Write Address & " Is a valid numeric address.<BR>"
Else
 Response.Write Address & " Is not a valid numeric address.<BR>"
End If

Response.Write "Host: " & Hostname & " resolves to address: " & _
                            dns.Lookup(Hostname) & "<BR>"

Response.Write "Address: " & Address & " resolves to host: " & _ 
                            dns.ReverseLookup(Address)  & "<BR>"

%>